package vn.hocweb.entity;

import java.util.ArrayList;
import java.util.List;

public class DanhMuc extends Entity{
	private long maDanhMuc;
	
	private BaiHoc_Abstract baiHoc;
	private List<Trang> trang;
	
	private String ten;
	private String ghiChu;
	
	private DanhMuc danhMuc;

	public DanhMuc(int thuTu, boolean noiBat, boolean hienThi, long maDanhMuc,
			long maBaiHoc, String ten, String ghiChu,
			long maDanhMucCha) {
		super(thuTu, noiBat, hienThi);
		this.maDanhMuc = maDanhMuc;
		this.baiHoc = new BaiHoc(maBaiHoc);
		this.trang = new ArrayList<Trang>();
		this.ten = ten;
		this.ghiChu = ghiChu;
		this.danhMuc = new DanhMuc(maDanhMucCha);
	}

	public DanhMuc(long maDanhMuc) {
		super();
		this.maDanhMuc = maDanhMuc;
	}

	public long getMaDanhMuc() {
		return maDanhMuc;
	}

	public void setMaDanhMuc(long maDanhMuc) {
		this.maDanhMuc = maDanhMuc;
	}

	public BaiHoc_Abstract getBaiHoc() {
		return baiHoc;
	}

	public void setBaiHoc(BaiHoc_Abstract baiHoc) {
		this.baiHoc = baiHoc;
	}

	public List<Trang> getTrang() {
		return trang;
	}

	public void setTrang(List<Trang> trang) {
		this.trang = trang;
	}

	public String getTen() {
		return ten;
	}

	public void setTen(String ten) {
		this.ten = ten;
	}

	public String getGhiChu() {
		return ghiChu;
	}

	public void setGhiChu(String ghiChu) {
		this.ghiChu = ghiChu;
	}

	public DanhMuc getDanhMuc() {
		return danhMuc;
	}

	public void setDanhMuc(DanhMuc danhMuc) {
		this.danhMuc = danhMuc;
	}
	
}
